package com.wanshi.cloud.client;

import com.wanshi.cloud.utils.base.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(value="order-server")
@RequestMapping("/feign/order")
public interface OrderClient {

    //根据id查商品
    @GetMapping("/{id}")
     Result findById(@PathVariable Integer id);

}
